<template>
    <div>
        <i-button @click="show">Click me!</i-button>
        <Modal v-model="visible" title="Welcome">欢迎使用 iView</Modal>
    </div>
</template>

<script>
   export default {
    data: function(){
        return{
                visible: false
        }
    },
    methods: {
        show: function () {
            this.visible = true;
        }
    }
}
</script>
